# 对列表中所有数字求平均值
list1=[1,2,3,4,'55','6']
sum1=0
for  a in list1:
    #isinstance(a,int) 了解  判断是否是int类型
    sum1+=int(a)
print(sum1/len(list1))

